@import "./tms-variables.scss";
@import "./mixin.scss";
@import "./element-ui.scss";
@import "./ag-grid.scss";

html,
body,
#app {
  width: 100%;
  height: 100%;
  background: #fff;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  box-sizing: border-box;
  list-style: none;
  font-family: "Nunito", sans-serif;
}

input:focus,
input:active:focus,
input.active:focus,
input.focus,
input:active.focus,
input.active.focus {
  outline: none !important;
}

select:focus,
select:active:focus,
select.active:focus,
select.focus,
select:active.focus,
select.active.focus {
  outline: none !important;
}

button:focus,
button:active:focus,
button.active:focus,
button.focus,
button:active.focus,
button.active.focus {
  outline: none !important;
}

a {
  text-decoration: none;
}
* {
  font-size: $tms-font-size;
  margin: 0;
  padding: 0;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

*:focus {
  outline: none;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}


/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
  background-color: #f5f5f5;
}

/*定义滚动条轨道 内阴影+圆角*/

::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 1px rgba(200, 201, 204, 0);
  border-radius: 5px;
  background-color: #f5f5f5;
}

/*定义滑块 内阴影+圆角*/

::-webkit-scrollbar-thumb {
  border-radius: 5px;
  -webkit-box-shadow: inset 0 0 6px rgba(222, 223, 224, 0.3);
  background-color: #c8c9cc;
}

/*input框type=number,上下箭头隐藏*/
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

input[type="number"] {
  -moz-appearance: textfield;
}
ul,ol,li{
  list-style: none;
}

//常用样式
.left {
  float: left;
}

.right {
  float: right;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}
.hide {
  display: none;
}

.show {
  display: block;
}

.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

//禁止文字被选中
.noSelected {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  -khtml-user-select: none;
  user-select: none;
}

.tit-wrap{
  margin: 0;
  position: relative;
  border: 1px solid #ddd;
  &::before{
    content: "";
    position: absolute;
    width: 4px;
    height: 1.2em;
    top: 0.5em;
    left: 0.5em;
    background: #3f8ff6;
  }
  .tit{
    padding: 0 1em;
    line-height: 2.2em;
    background: #eff3f7;
    border-bottom: 1px solid #ddd;
  }
}
